package ru.inse.core.dao.dict.impl;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import ru.inse.core.domain.dict.City;


public class CityMapper
    implements RowMapper<City>
{
    @Override
    public City mapRow(ResultSet rs, int rowNum)
        throws SQLException
    {
        City city = new City();
        city.setId(rs.getLong("id"));
        city.setName(rs.getString("name"));
        return city;
    }
}
